package com.qiaofang.entity;

import com.qiaofang.common.model.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.LastModifiedBy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "tm_subscription")
public class Subscription extends BaseDomain {
	
	@ApiModelProperty("")
    @Column(name = "app_name")
    private String appName;

    @ApiModelProperty("")
    @Column(name = "app_id")
    private String appId;

    @ApiModelProperty("")
    @Column(name = "app_secret")
    private String appSecret;

    @ApiModelProperty("关联公司id")
    @Column(name = "company_id")
    private Long companyId;

    @ApiModelProperty("冗余公司uuid")
    @Column(name = "company_uuid")
    private String companyUuid;

    @ApiModelProperty("0:运营后台,1巧渠道，2案场助手，3分销助手，4，巧分销")
    @Column(name = "system_id")
    private String systemId;

    @ApiModelProperty("0:否，1:是")
    @Column(name = "del_flag")
    private String delFlag;

    @CreatedBy
    @ApiModelProperty("")
    @Column(name = "create_user_id")
    private Long createUserId;

    @LastModifiedBy
    @ApiModelProperty("")
    @Column(name = "update_user_id")
    private Long updateUserId;


}
